package com.yzh.oop3.teacher;

public class English extends Programmer {

    //方法1：从父类继承的  writeCode

    //方法2：重写父类的方法

    @Override
    public void eat() {
        System.out.println("----------English eat meat by knife--------------");
    }


    //方法3：子类特有的方法
    public void raceHorse(){
        System.out.println("----------English race horse....------------");
    }
}
